{capture name="hidden"}	
{/capture}
{capture name="fields"}
{literal}
	<script type="text/javascript">
	function elementscopyids(id){
		top.opener.window.document.forms['element_list']['copys'].value='1';
		top.opener.window.document.forms['element_list']['parent'].value=id;
		top.opener.window.document.forms['element_list']['act'].value='cop';
		top.opener.window.document.forms['element_list'].submit();
		window.close();
	}
	</script>
{/literal}
	<!-- * -->
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>

	<table cellpadding="0" cellspacing="0">
		<tr>
			<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			<td>{t t='Pasirinkite kalbą'}:</td>
			<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			<td width="15">
			<select name="languages" style="width:70px" onChange="window.location='index.php?admin=1&popup=75&id={$smarty.get.id}'+this.value">
			  {foreach from=$data.tree.lang item="el"}
			  <option value="&new_lang={$el.name}" {if $smarty.get.new_lang|lower==$el.name|lower}selected{/if}>{$el.name}</option>
			  {/foreach}
			</select>		
			</td>
		</tr>
	</table>
 
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>

   	<style type="text/css">
	{literal}
	.pages-item {
		padding: 5px 0; border-top: 1px solid #FFFFFF; border-bottom: 1px solid #D6DBDE;
	}
	.pages-item a {
	  background: url('_tvs_system_core_/design/img/document_copy.gif') no-repeat left center; padding: 5px 0 5px 16px;
	}
	{/literal}
	</style>
		
	{ext->get_one_type_element id=$smarty.get.id assign="elmass"}
	
	{foreach from=$elmass key="key" item="el"}		
		<div class="pages-item" style="padding-left: 7px;">
			<a href="javascript:void(0);">{$key}</a>
		</div>
		{foreach from=$el key="key1" item="el1"}	
			<div class="pages-item" style="padding-left: 27px;">
				{if $key1 != $smarty.get.id}<a href="javascript:void(0);" onClick="elementscopyids({$key1});" class="blackUnderline">{$el1}</a>{else}<span style="color:#999999">{$el1}</span>{/if}
			</div>
		{/foreach}
   {/foreach}
{/capture}


